<template>
  <div class="dashboard-container">
    <h1>后台首页</h1>

  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import adminDashboard from './admin'
import editorDashboard from './editor'

export default {
  name: 'Dashboard',

  data() {
    return {

    }
  },
  computed: {
    ...mapGetters([
      'roles'
    ])
  },
  created() {

    // 来到首页之前做个人信息初始化
    // 调用请求后台的个人信息方法，全局状态保存
    // this.$store.dispatch('user/getInfo')
    // this.currentRole = 'adminDashboard'

  }
}
</script>
